package com.voicechat.firstmet.bean;

import java.util.List;

/**
 * @ProjectName: FirstMet
 * @Package: com.voicechat.firstmet.bean
 * @ClassName: GifBean
 * @Description: 个人主页礼物数据
 * @Author: ljp
 * @CreateDate: 2018/10/29 14:04
 * @Version: 1.0
 */
public class GifBean {


    /**
     * code : 200
     * msg : 成功
     * page : {"pageNo":1,"pageSize":30,"count":2,"list":[{"isNewRecord":true,"userId":"f68b3c28db3c41d795b34268aef3b68a","giftId":"111","name":"游轮","gold":100,"charm":60,"type":3,"count":"2","giftUrl":"123.jpg"},{"isNewRecord":true,"userId":"f68b3c28db3c41d795b34268aef3b68a","name":"大火箭","gold":200,"charm":120,"type":3,"count":"3"}],"maxResults":30,"firstResult":0}
     */

    private int code;
    private String msg;
    private PageBean page;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public static class PageBean {
        /**
         * pageNo : 1
         * pageSize : 30
         * count : 2
         * list : [{"isNewRecord":true,"userId":"f68b3c28db3c41d795b34268aef3b68a","giftId":"111","name":"游轮","gold":100,"charm":60,"type":3,"count":"2","giftUrl":"123.jpg"},{"isNewRecord":true,"userId":"f68b3c28db3c41d795b34268aef3b68a","name":"大火箭","gold":200,"charm":120,"type":3,"count":"3"}]
         * maxResults : 30
         * firstResult : 0
         */

        private int pageNo;
        private int pageSize;
        private int count;
        private int maxResults;
        private int firstResult;
        private List<ListBean> list;

        public int getPageNo() {
            return pageNo;
        }

        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getMaxResults() {
            return maxResults;
        }

        public void setMaxResults(int maxResults) {
            this.maxResults = maxResults;
        }

        public int getFirstResult() {
            return firstResult;
        }

        public void setFirstResult(int firstResult) {
            this.firstResult = firstResult;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * isNewRecord : true
             * userId : f68b3c28db3c41d795b34268aef3b68a
             * giftId : 111
             * name : 游轮
             * gold : 100
             * charm : 60
             * type : 3
             * count : 2
             * giftUrl : 123.jpg
             */

            private boolean isNewRecord;
            private String userId;
            private String giftId;//礼物id
            private String name;//礼物名称
            private int gold; // 钻石
            private int charm; // 魅力
            private int type; // 消费类型 1语聊 2打赏 3送礼
            private String count;//礼物的数量
            private String imgUrl;//礼物图片地址
            private String remarks;//详情

            private String presentationId;       // 赠送用户id
            private int  number;               // 数量
            private String createDate;//收到时间
            private String updateDate;

            public String getRemarks() {
                return remarks;
            }

            public void setRemarks(String remarks) {
                this.remarks = remarks;
            }

            public String getCreateDate() {
                return createDate;
            }

            public void setCreateDate(String createDate) {
                this.createDate = createDate;
            }

            public String getPresentationId() {
                return presentationId;
            }

            public void setPresentationId(String presentationId) {
                this.presentationId = presentationId;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public boolean isIsNewRecord() {
                return isNewRecord;
            }

            public void setIsNewRecord(boolean isNewRecord) {
                this.isNewRecord = isNewRecord;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getGiftId() {
                return giftId;
            }

            public void setGiftId(String giftId) {
                this.giftId = giftId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getGold() {
                return gold/10;
            }

            public void setGold(int gold) {
                this.gold = gold;
            }

            public int getCharm() {
                return charm/10;
            }

            public void setCharm(int charm) {
                this.charm = charm;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getCount() {
                return count;
            }

            public void setCount(String count) {
                this.count = count;
            }

            public String getGiftUrl() {
                return imgUrl;
            }

            public void setGiftUrl(String giftUrl) {
                this.imgUrl = giftUrl;
            }

            @Override
            public String toString() {
                return "ListBean{" +
                        "isNewRecord=" + isNewRecord +
                        ", userId='" + userId + '\'' +
                        ", giftId='" + giftId + '\'' +
                        ", name='" + name + '\'' +
                        ", gold=" + gold +
                        ", charm=" + charm +
                        ", type=" + type +
                        ", count='" + count + '\'' +
                        ", imgUrl='" + imgUrl + '\'' +
                        ", remarks='" + remarks + '\'' +
                        ", presentationId='" + presentationId + '\'' +
                        ", number=" + number +
                        ", createDate='" + createDate + '\'' +
                        ", updateDate='" + updateDate + '\'' +
                        '}';
            }
        }
    }
}
